package payroll.trans;

import payroll.classfication.CommissionedClassification;
import payroll.classfication.PaymentClassfication;

public class ChangeCommissionedTransaction extends ChangeClassficationTransaction {

    
    private double salary;
    private double commissionRate;

    public ChangeCommissionedTransaction(int empId, double salary, double commissionRate) {
       super(empId);
       
       this.salary = salary;
       this.commissionRate = commissionRate;
    }
    protected PaymentClassfication getPaymentClassfication() {
        return new CommissionedClassification(salary, commissionRate);
    }



}
